<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>03_CSS三大特性-继承性</title>
        <style>
            #d1 {
                font-size: 80px;
            }

            #d2 {
                font-size: 60px;
                color: red;
                background-color: yellow;
            }

            p {
                font-size: 40px;
            }
        </style>
    </head>
    <body>

        <div id="d1">
            <div id="d2">
                <p>希望今天晚上睡一个好觉</p>
            </div>
        </div>
       
    </body>
</html>